Skip to content

DelegateWitness class

Defined in

Namespace: ReactiveUI.Primitives.Signals Assembly: ReactiveUI.Primitives.Core.dll Full name: ReactiveUI.Primitives.Signals.DelegateWitness<T> Modifiers: public sealed

Summary

View source

A lightweight IObserver that forwards each notification to the supplied delegates. Use it to subscribe to an IObservable without allocating a bespoke observer class. The onError and onCompleted delegates are optional; when omitted the corresponding terminal notification is ignored.

Applies to

net10.0, net10.0, net10.0-desktop1.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-browserwasm1.0, net9.0, net9.0, net9.0-desktop1.0, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-browserwasm1.0, net8.0, net8.0, net8.0-ios17.5, net8.0-macos14.5, net8.0-macos14.5, net8.0-macos14.2, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-maccatalyst17.5, net8.0-tvos17.2, net8.0-tvos17.2, net8.0-ios17.5, netstandard2.1, netstandard2.1, net481, net462, net462, net481

Class hierarchy
classDiagram
class DelegateWitness~T~
class IObserver~T~ {
    <>
}
IObserver~T~ <|.. DelegateWitness~T~

Implements: IObserver

Constructors

NameSummary
.ctorA lightweight IObserver that forwards each notification to the supplied delegates. Use it to subscribe to an...

Methods

NameSummary
OnNext
OnError
OnCompleted
Inherited members